﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SIMS_GUI_Item
{
    public partial class AdminManagementCourse : Form
    {
        public AdminManagementCourse()
        {
            InitializeComponent();
        }

        private void Item_Account_Click(object sender, EventArgs e)
        {
            AdminManagementAccount ac = new AdminManagementAccount();
            ac.Show();
            this.Close();
        }

        private void Item_User_Click(object sender, EventArgs e)
        {
            AdminManagementUser us = new AdminManagementUser();
            us.Show();
            this.Close();
        }

        private void Item_Help_Click(object sender, EventArgs e)
        {
            AdminManagementHelp hp = new AdminManagementHelp();
            hp.Show();
            this.Close();
        }

        private void btn_CourseList_Click(object sender, EventArgs e)
        {
            /*
            CourseList cl = new CourseList();
            cl.BackColor = Color.FromArgb(50, 69, 101);
            cl.Width = 1215;
            cl.Height = 850;
            cl.Location = new Point(209, 175);
            cl.Show();
            */
            this.pnl_Course.Controls.Clear();
            cl.TopLevel = false;
            cl.Dock = DockStyle.Fill;
            this.pnl_Course.Controls.Add(cl);
            cl.Show();
        }

        CourseList cl;
        private void AdminManagementCourse_Load(object sender, EventArgs e)
        {
            cl = new CourseList();
        }
    }
}
